package com.guanyong.dao;

import com.guanyong.model.FuncModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by mxk on 2017/6/7.
 */
public interface IFuncDaoMapper {

    int insert(FuncModel record);



    @Select("SELECT * FROM t_ad_func WHERE f_id=#{fId}" )
    @ResultMap("FuncResultMap")
    FuncModel selectByPrimaryKey(Integer fId);

    @Select("SELECT * FROM t_ad_func  where f_id in (${idlist})")
    @ResultMap("FuncResultMap")
    List<FuncModel> selectIdList(@Param("idlist") String idlist);


    @Select("SELECT * FROM t_ad_func" )
    @ResultMap("FuncResultMap")
    List<FuncModel> selectFuncListAll();


    int update(FuncModel record);
}
